package com.javacode2018.lesson001.demo8;

/**
 * @Author: hongsir
 * @Date: 2024/10/10 - 10 - 10 - 15:15
 * @Description: com.javacode2018.lesson001.demo8
 * @Version: 1.0
 */
public class SetterBean {
    public interface IService{} //@1
    public static class ServiceA implements IService{}; //@2
    public static class ServiceB implements IService{}; //@3

    private IService service;

    public void setService(IService service) {
        this.service = service;
    }
}
